{extend name='main'}
{block name="button"}
<!--{if auth("add")}-->
<button data-table-id="TableLists" data-open='{:url("add")}'
  class='layui-btn layui-btn-sm layui-btn-primary'>添加数据</button>
<!--{/if}-->

{/block}

{block name="content"}
<div class="layui-tab layui-tab-card">
  <div class="layui-tab-content">
    {include file='inbound/index_search'}
    <table class="layui-table margin-top-10" lay-size="lg" lay-skin="line" id="TableLists">
      {notempty name='list'}

      <thead>
        <tr>
          <th class='list-table-check-td think-checkbox'>
            <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
          </th>
          <th>订单ID</th>
          <th>姓名</th>
          <th>总重量</th>
          <th>总件数</th>
          <th>支付状态</th>
          <th>应收状态</th>
          <th>地点</th>
          <th>操作时间</th>
          <th>操作面板</th>
        </tr>
      </thead>
      {/notempty}
      <tbody>
        {foreach $list as $key=>$vo}
        <tr>
          <td class='list-table-check-td think-checkbox'>
            <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
          </td>
          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.bill_no}
            </div>
          </td>
          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.user_name}
            </div>
          </td>

          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.total_weight}
            </div>
          </td>

          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.total_num}
            </div>
          </td>
          <td class="nowrap">
            {eq name='vo.pay_status' value='0'}<span class="layui-badge layui-badge-middle layui-bg-blue">未支付</span>{/eq}
            {eq name='vo.pay_status' value='1'}<span class="layui-badge layui-badge-middle layui-bg-green">已支付</span>{/eq}
          </td>
          <td class='text-center nowrap notselect'>

              {eq name='vo.status' value='0'}<span class="layui-badge layui-badge-middle layui-bg-blue">未收</span>{/eq}
              {eq name='vo.status' value='1'}<span class="layui-badge layui-badge-middle layui-bg-green">已收</span>{/eq}
            
          </td>


          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.depart_name} - {$vo.receiver_name}
            </div>
          </td>
          
          <td class="nowrap relative">
            <div class="inline-block">
              {$vo.created_at}
            </div>
          </td>

          <td  class='text-center nowrap notselect'>
            
            <!--{if auth("edit")}-->
            <a class="layui-btn layui-btn-primary layui-btn-sm" data-dbclick data-open='{:url("edit")}?id={$vo.id}' data-title="编辑分类">编 辑</a>
            <!--{/if}-->

            <!--{if auth("detail")}-->
            <a class="layui-btn layui-btn-primary layui-btn-sm" data-dbclick data-open='{:url("detail")}?id={$vo.id}'
              data-title="编辑分类">详情</a>
            <!--{/if}-->
          </td>
         
        </tr>
        {/foreach}
      </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

  </div>
</div>
{/block}